package com.mask.im.business.model.entity.chat;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * @author jian
 */

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_friendships")
public class Friendships {
    //好友表id
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    //添加用户id
    private Long oneUserId;
    //添加用户id
    private Long twoUserId;
    //备注
    private String remark;
    //所属分组
    private Long groupId;
    //0不活跃1活跃
    private Integer isActive;
    //最新消息
    private String latestNews;

    private Integer messageType;
    //是否为好友
    private Integer isFriends;
    //招呼留言
    private String guestBook;
    //标签
    private String label;
    //描述
    private String description;

    private Integer isTop;
    //是否为星标
    private String isStar;
    //未读次数
    private Integer unreadCount;
    //是否已删除1删除
    private Integer isDelete;
    //最新时间
    private Date latestTime;
    //更新时间
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    //创建时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

}

